import { mapGetters } from "vuex"
export default {
	computed:{
		...mapGetters('cart',['getshop'])
	},
	methods:{
		setpagenum(){
			uni.setTabBarBadge({
				index:2,
				text:this.getshop.num+''
			})
		},
	},
	onShow() {
		this.setpagenum()
	}
}